/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.pclong.config.entity;

import org.simpleframework.xml.Default;
import org.simpleframework.xml.Element;

/**
 *
 * @author Administrator
 */
@Default
public class ServerConfigEntity {

    //public  static synchronized  ServerConfigEntity 
//    private static ServerConfigEntity instance;
//
//    /**
//     * Get the value of instance
//     *
//     * @return the value of instance
//     */
//    public static synchronized ServerConfigEntity getInstance() {
//        if (instance == null) {
//            instance = new ServerConfigEntity();
//        }
//        return instance;
//    }
    ///  Gets or sets the id of the zone.       
    @Element
    public int Id;
    /// Gets or sets the select role url.
    @Element(required = false)
    public String SelectRoleUrl;
    /// Gets or sets the server's title.
    @Element(required = false)
    public String Title;
    /// Gets or sets the server's SignKey.
    @Element(required = false)
    public String SignKey;
    /// Gets or sets the server's ChargeKey.
    @Element(required = false)
    public String ChargeKey;
    /// Gets or sets the server's ChargeUrl.  
    @Element(required = false)
    public String ChargeUrl;
    ///  Gets or sets the state of the zone.
    @Element(required = false)
    public ServerState State;
    ///  Gets or sets the state information of the zone.
    @Element(required = false)
    public String StateInformation;
    ///  Gets or sets a bool value indicating whether the zone is recmmended or not.
    @Element(required = false)
    public boolean Recommended;
    ///  Gets or sets the order value to sort by.
    @Element(required = false)
    public float Order;
    ///  Gets or sets the server of the zone.
    //@Attribute
    @Element(required = false)
    public ServerSettingsConfigEntity Settings;

    public ServerConfigEntity() {
        Id = 0;
        Title = "";
        SelectRoleUrl = "";
        State = ServerState.Incoming;
        StateInformation = "";
        Recommended = false;
        Order = 1.0F;
        ChargeKey = "";
        ChargeUrl = "";
        SignKey = "";
        Settings = new ServerSettingsConfigEntity();
    }
}
